package core.exceptions;

import java.io.IOException;

public class ParserException extends IOException {

	private static final long serialVersionUID = 1L;
	
	private String filename;
	
	public ParserException(String msg, Throwable cause) {
		super(msg, cause);
	}
	
	public ParserException(String msg, String filename, Throwable cause) {
		super(msg, cause);
		this.filename = filename;
	}
	
	/* Returns the filename in which the exception has been thrown */
	public String getFileName() {
		return filename;
	}

}
